const mongoose = require("mongoose");
const shopsSchema = new mongoose.Schema({
    name: String,
    //状态值，门店默认为state=open（待审核）
    //管理员通过时状态值为state=normal（店铺正常）
    //管理员未通过（关闭）时状态值为state=close（店铺关闭）
    state: String,

    address:String,
    //关联店铺
    storesId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "storesModel"
    }
    //
})
mongoose.model("shopsModel", shopsSchema, "shops")